package com.example.mapper;

import com.example.entity.User;
import com.example.entity.dto.UserDto;
import org.apache.ibatis.annotations.*;

import java.util.List;

@Mapper
public interface UserMapper {

    /**
     * 根据账号查询
     * @param account
     * @return
     */
    @Select("select * from admin where account = #{account}")
    User findByUsername(String account);


    /**
     * 更新用户数据
     * @param user
     */
    void update(User user);
}
